package com.yuanli.cosmeticmirror.view.adapter;

import android.text.TextUtils;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.yuanli.cosmeticmirror.R;
import com.yuanli.cosmeticmirror.base.MyApp;

import org.jetbrains.annotations.NotNull;

import comenjoy.com.imageloadlibrary.GlideUtil;

public class FeedbackAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public FeedbackAdapter() {
        super(R.layout.items_feedback);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, String s) {
        if (TextUtils.isEmpty(s)){
            return;
        }
        GlideUtil.getInstance().loadRoudImage(MyApp.getInstance(), s, baseViewHolder.getView(R.id.feedback_img), 4);
    }
}
